<dl class="main-content__navi">
    <dt>О Компании</dt>
    <dd>
        <?php if (!empty($links)): ?>
            <ul>
                <?php
                $url = Yii::app()->request->pathInfo;
                if (substr_count($url, '/')) {
                    $url_array = explode('/', $url);
                    $url = array_shift($url_array);
                }
                foreach ($links as $link => $title) {
                    $css_class = $url == $link ? ' class="selected" ' : '';
                    echo '<li' . $css_class . '><a href="/' . $link . '">' . $title . '</a></li>';
                }
                ?>
            </ul>
            <?php endif; ?>
    </dd>
</dl>